package Integrity;


public class TelcoResult extends GeneralResult{

	TelcoResult(String UserID, String ResultID,String BillingSiteID, StatementData extract) {
		super(UserID, ResultID,BillingSiteID, extract);
		tel_no= extract.get_scraped_tel_no();
		serv_chrg = extract.get_scraped_serv_chrg();
		call_chrg = extract.get_scraped_call_chrg();
		t_no_call = extract.get_scraped_t_no_call();
		t_call_dur= extract.get_scraped_t_call_dur();
	}
	
	public String get_t_call_dur(){
		return t_call_dur;
	}
	public double get_call_chrg(){
		return call_chrg;
	}
	public double get_serv_chrg(){
		return serv_chrg;
	}
	public String get_tel_no() {
		return tel_no;
	}
	public int get_t_no_call() {
		return t_no_call;
	}
	@Override public String toString() {
		StringBuilder resultToString = new StringBuilder();
		String NEW_LINE = System.getProperty("line.separator");
		resultToString.append(super.toString());
		resultToString.append(""+ NEW_LINE);
		resultToString.append("TELCO STATEMENT SPECIFIC DATA "+ NEW_LINE);
		resultToString.append("tel_no: " + tel_no + NEW_LINE);
		resultToString.append("t_call_dur: " + t_call_dur + NEW_LINE);
		resultToString.append("serv_chrg: " + Double.toString(serv_chrg) + NEW_LINE);
		resultToString.append("call_chrg: " + Double.toString(call_chrg) + NEW_LINE);
		resultToString.append("t_no_call: " + Integer.toString(t_no_call) + NEW_LINE);
		return resultToString.toString();
	}
	private String tel_no="";
	private double serv_chrg;
	private double call_chrg;
	private int t_no_call;
	private String t_call_dur="";
}
